﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Remoting;
using System.Runtime.Remoting.Channels.Http;
using System.Runtime.Remoting.Channels;
using System.Runtime.Remoting.Channels.Tcp;

namespace RemoteServer
{
    class Program
    {
        static void Main(string[] args)
        {

            RemotingConfiguration.RegisterWellKnownServiceType(
              Type.GetType("RemoteGame.RemoteGame, RemoteGame"),
              "Game",
              WellKnownObjectMode.SingleCall);

            TcpChannel channel = new TcpChannel(8080);
            ChannelServices.RegisterChannel(channel, false);

            Console.ReadKey();

        }
    }
}
